set nocompatible

set backspace=indent,eol,start

set history=50		" keep 50 lines of command line history
set ruler		" show the cursor position all the time
set showcmd		" display incomplete commands
set incsearch		" do incremental searching

if has("autocmd")
  filetype plugin indent on

  autocmd FileType text setlocal textwidth=78

  autocmd BufReadPost *
    \ if line("'\"") > 1 && line("'\"") <= line("$") |
    \   exe "normal! g`\"" |
    \ endif

else
  set autoindent		" always set autoindenting on

endif " has("autocmd")

if !exists(":DiffOrig")
  command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
		  \ | wincmd p | diffthis
endif

set nu
set sw=4
set ts=4
syntax on

"Vundle{
set nocompatible
filetype off

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

Bundle 'gmarik/vundle'
"}

"vim-scripts-repos{
"common{
"Bundle 'taglist.vim'
"Bundle 'cscope.vim'
Bundle 'StripWhiteSpaces'
Bundle 'readnovel'
Bundle 'calendar.vim'
"Bundle 'SuperTab'
"Bundle 'The-NERD-Commenter'
"Bundle 'The-NERD-tree'
"Bundle 'Projmgr'
Bundle 'sessionman.vim'
Bundle 'bufexplorer.zip'
Bundle 'fholgado/minibufexpl.vim'
"Bundle 'mru.vim'
Bundle 'EasyMotion'
"Bundle 'superSnipMate'
"Bundle 'better-snipmate-snippet'
"Bundle 'Ultisnips'
"Bundle 'AuthorInfo'
"Bundle 'winmanager'
"Bundle 'Lokaltog/powerline'
"Bundle 'Shougo/neocomplcache'
"Bundle 'garbas/vim-snipmate'
Bundle 'closetag.vim'
"Bundle 'vim-flake8'
Bundle 'grep.vim'
Bundle 'multiAPIsyntax'
Bundle 'vimtips.zip'
"Bundle 'lrc.vim'
"Bundle 'vim-kickstart'
"Bundle 'log.vim'
"Bundle 'prop.vim'
"Bundle 'syntaxdosini.vim'
"Bundle 'sql.vim'
"Bundle 'easytags.vim'
"Bundle 'wesnothcfg.vim'
Bundle 'comments.vim'
"}

"flex{
"Bundle 'Flex-4'
"}

"actionscript{
"Bundle 'actionscript.vim'
"}

"javascript{
"Bundle 'Enhanced-JavaScript-syntax'
"Bundle 'JavaScript-syntax'
"Bundle 'JQuery'
"}

"bash{
"Bundle 'bash-support.vim'
"}

"perl{
"Bundle 'perl-support.vim'
"}

"cpp{
"Bundle 'vim-cpp-auto-include'
"Bundle 'echofunc.vim'
"Bundle 'OmniCppComplete'
"Bundle 'gtk-vim-syntax'
"Bundle 'clang-complete'
"Bundle 'SDL-library-syntax-for-C'
"Bundle 'opengl.vim'
"}

"markdown{
"Bundle 'Markdown'
"Bundle 'Markdown-syntax'
"}

"css{
"Bundle 'css_color.vim'
"Bundle 'css3-syntax-plus'
"Bundle 'less-syntax'
"Bundle 'Better-CSS-Syntax-for-vim'
"}

"html{
"Bundle 'vim-htmldjango_omnicomplete'
"Bundle 'html_FileCompletion'
"Bundle 'HTML-AutoCloseTag'
"Bundle 'othree/html5.vim'
"}

"cmake{
"Bundle 'cmake.vim'
"}

"Python{
"Bundle 'PyChimp'
"Bundle 'pygtk_syntax'
"Bundle 'klen/python-mode'
"Bundle 'VimPdb'
"Bundle 'python_ifold'
"Bundle 'python_import.vim'
"Bundle 'pythoncomplete'
"Bundle 'compilerpython.vim'
"Bundle 'pydoc.vim'
"Bundle 'pylint.vim'
"Bundle 'Pydiction'
"Bundle 'python.vim'
"Bundle 'pythonhelper'
"}
"}

"Configure{
autocmd FileType python source ~/.vim/config/python
"}
